package com.icinfo.cloud.provider.punish.simple.transfer.controller;


import com.icinfo.cloud.common.core.page.PageResponse;
import com.icinfo.cloud.provider.common.constant.Constant;
import com.icinfo.cloud.provider.punish.simple.transfer.dto.CaseSimpleTransferRecordPageDto;
import com.icinfo.cloud.provider.punish.simple.transfer.service.ICaseSimpleTransferRecordService;
import com.icinfo.cloud.provider.punish.simple.transfer.vo.CaseSimpleTransferRecordPageVo;
import com.icinfo.cloud.provider.punish.simple.transfer.vo.CaseSimpleTransferRecordVo;
import com.icinfo.framework.common.web.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * 简单案件移交记录控制层
 * @author HKxxx
 * @date 2024/2/1 13:57
 */
@RestController
@RequestMapping("/punish/simple/transfer")
public class CaseSimpleTransferRecordContorller {

    @Resource
    private ICaseSimpleTransferRecordService caseSimpleTransferRecordService;

    @GetMapping("/pageList")
    @ApiOperation(value = "简单案件移交记录分页查询", httpMethod = "GET")
    public Result<PageResponse<CaseSimpleTransferRecordPageVo>> pageList(CaseSimpleTransferRecordPageDto dto){
        return Result.success(caseSimpleTransferRecordService.pageList(dto));
    }

    @GetMapping("/details")
    @ApiOperation(value = "简单案件移交记录详情查询", httpMethod = "GET")
    public Result<CaseSimpleTransferRecordVo> details(String id){
        return Result.success(Constant.INTEGER_200, caseSimpleTransferRecordService.details(id));
    }

}
